home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Shareware World / Utilities / Text Processing / Jedit3.0 / Manual / Chap2 File Operation < prev    next >
Encoding:
Text File  |  1999-08-03  |  14.4 KB  |  305 lines  |  [TEXT/JED3]

  1. Chapter 2 - File Operation
  2.  
  3.  
  4. 2.1 Creating New Documents
  5.  
  6. To create a new document, select "New" from the "File" menu. A new, blank window will appear on your screen.
  7.              
  8.  
  9. You can define new document settings, such as window size, font type, and background color, by going to the "File" menu, selecting "Preferences" and then choosing "New Document".  To read more about defining these variables refer to "Chapter 3 - Preferences".
  10.             
  11.  
  12. 2.2 Files that Jedit3.0 can Edit
  13.  
  14.  
  15. Jedit3.0 is designed to edit the following text files:
  16.     
  17.     Plain Text (Mono Style Text)
  18.         Text data only. (Plain text refers to text data in the
  19.         narrowest sense)
  20.         
  21.     Styled Text
  22.         Text data that includes font type, font size, font color
  23.         and font style.
  24.         Jedit3.0 can edit Styled Text created by SimpleText.
  25.         
  26.     Read Only Text for SimpleText
  27.         Styled Text that includes picture data with following icon.
  28.           
  29.         SimpleText can only open and read this file.  It cannot edit it.
  30.         Jedit3.0, however, can open and edit this type of file.
  31.  
  32.     WASTE Text
  33.         Styled Text that includes sounds, pictures, and other
  34.         objects.
  35.         WASTE Text is a text format that comes from the WASTE
  36.         Text Engine created by Mr. Macro Piovanelli.  Many editor
  37.         programs, including Jedit3.0, use WASTE Text Engines.
  38.         To view a list of editor products that use the WASTE
  39.         Text Engine, go to:
  40.         http://www.boingo.com/waste/
  41.  
  42. Our previous Jedit program, Jedit2.0, could only edit plain text.  Jedit3.0 is a much more powerful program since it can read, edit, and save all four types of text files shown above.
  43.  
  44. Though the line break code of MacOS  is  "CR", Jedit can read and save document files that use different codes of other operating systems, as follows:
  45.  
  46.         3 Types of Line Break:      Macintosh(CR), UNIX(LF), DOS(CR+LF)
  47.  
  48. Jedit also can read and save the Unicode and UTF8 text whose first 2 bytes of text are 0xFEFF( ZERO-WIDTH NO BREAK SPACE).
  49.  
  50. In the Japanese Text, Jedit supports the following types of kanji encodings even though the default (standard) kanji encoding of MacOS is shift-JIS.
  51.  
  52.         shift-JIS, JIS, EUC, NEC-JIS, ACOS, CIS-JIS*1, Unicode*1, UTF8*1
  53.  
  54. Jedit can find the type of kanji encodings in opening files and automatically converts to default encoding.
  55.  
  56. If you don't handle the Japanese text, please set the option "Judge Kanji Encodings" of Preferences to OFF. Because it may misjudge the high ASCII Roman text as Kanji text.
  57.  
  58. If the encoding or the type of line break were not Mac's default set, Jedit displays the following alert message *1.  If you want to convert the document, push "Convert" button.
  59.  
  60.             
  61.  
  62. *1 If you do not want to see the above alert messages, push the buttun "Don't alarm from now on" or got to "Preferences" and  turn this option off.
  63.  
  64. In Judgement of Kanji Encodings, Jedit may works correctly in most cases. However, it may fail to judge when the document contains a limited number of words, or only specific words.  For example, with documents that were built using only Hankaku Katakana, it is difficult to determine between the shift-JIS (MacJapanese) and EUC Encoding.  In such cases, the following dialog box will appear, allowing you to manually select the appropriate encoding.
  65.  
  66.             
  67.  
  68. <<Note on  CIS-JIS Kanji Encoding >>
  69.  
  70. Jedit3.0 judge CIS-JIS kanji encoding if the document contains '~y' or '~z'.
  71. However, some URLs or home directory strings in UNIX may contain '~y' or '~z', in which cases Jedit3.0 will mistakenly judge as the CIS-JIS kanji encoding. Therefore, we recommend that you turn off "Judge CIS-JIS Kanji" in preferences, unless you are opening a document that uses CIS-JIS.  (CIS-JIS is minor encoding that is used by the Japanese forum of CompuServe.)
  72.  
  73.  
  74.  
  75.  
  76. 2.3  Opening Documents
  77.  
  78. There are four ways to open document files using Jedit.
  79.  
  80. (1) Double click on the Jedit3.0 document.
  81. The icon below represents a Jedit document file.  If you double click on this icon, Jedit automatically starts up and opens the file.
  82.                         
  83.  
  84. (2) Dragging & Dropping document files on Jedit3.0 Icon.
  85. Any text file, including non-Jedit documents, can be opened using drag & drop.  If the document is not a text file, the following alert message appears.  The alert dialog will not appear if you hold down the option key while dragging & dropping the document file.
  86.  
  87.             
  88.  
  89. *Jedit is designed to edit text files only.  When using the option key, there is no way to be sure if you are opening a text or non-text file. This function should only be used when opening text files that have a file type other than "TEXT" for whatever reason.
  90.  
  91. (3) Opening a document file.
  92.  
  93. Select "Open..." from the "File" menu to open a certain text file.  To open a none-text document, hold down the option key while choosing the menu.
  94.  
  95. You can choose a classic File dialog or Navigation Service File dialog by selecting "General" from preferences.  A Navigation Service is available in MacOS 8.5 or later.
  96.  
  97.     
  98.              Navigation Service Open Dialog Box
  99.              
  100. To preview the beginning of a selected file, push "Show Preview" button.
  101.  
  102. If you check the checkbox "Auto Judge",  Jedit3.0 will automatically judge its kanji Encoding and line break.  If the file is not MacOS's default encodings, Jedit3.0 automatically converts the file so that it can be viewed in the preview window.
  103.  
  104. If you don't check  the checkbox "Auto Judge", you can manually specify "Encodings" and "Line Break".  We recommend that you check off "Auto Judge" when Jedit3.0 can't judge the correct encoding.
  105.  
  106.  
  107. (4) Select "Recently Opened Files..."
  108.  
  109. If you select the menu "Recently Files...", a list of recently opened files will appear, with the most recent file listed on top.  Then select the file you want to open.  This is a quick, easy way to view recent files.  To change the maximum number of files displayed on this menu, select "Open" from "Preferences". The default number is "15."
  110.  
  111. If you want to remove a file name from this menu, simply select the name of the file with the option key down.
  112.         
  113.         
  114.  
  115.  
  116.  
  117.  
  118. 2.4 Saving Documents
  119.  
  120. Select "Save" from the "File" menu to save a current document.
  121.  
  122. When the current document has not been saved or when  you select "Save As...", the following save dialog will  appear.  Select the folder where you want to save and input a file name.
  123.  
  124.            
  125.                       Navigation Service Save Dialog
  126.  
  127. You can specify the type of file by the pop-up menu "File Type".
  128.  
  129.                 
  130.  
  131. Choosing "Same As Original", the document will be saved in the same file type as the original file  that you opened.
  132.  
  133. Choosing "Jedit3 Normal", the document will be saved in the Jedit3.0 file type with following icon:
  134.                         
  135.  
  136. Choosing "Jedit3 Text Only", the document's data fork is only saved in Jedit3.0 file type but its resource fork.  (i.e. the document is saved as a plain text file.)  Any specific data in resource fork, such as fonts, styles, images , the cursor position and window size, are not saved.  By saving documents in this manner, you can save some disk spaces.
  137.  
  138. Choosing "SimpleText", the document will be saved in the Simple Text file type  with the  following icon:
  139.                         
  140.  
  141. When you choose "SimpleText Read Only", the document will be saved as the read only SimpleText file with the following icon:
  142.                         
  143.  
  144. SimpleText program can not open a text file that has more than 32KB. If you choose "SimpleText" or "SimpleText Read Only"  to save a large file, the following alert box will appears:
  145.  
  146.             
  147.  
  148. Though MacOS's default encoding is MacRoman (Shift-JIS) and line break is CR, Jedit can save in other encodings and line breaks by selecting pop-up menu "Encodings" and "Line Breaks".
  149.  
  150.                          
  151.                   Encodings               Line Breaks
  152.  
  153. To save in MacRoman or MacJapanese encoding, choose "Mac".  You can also save Roman text in Unicode/UTF8 encodings. Encodings of "JIS", "EUC", "NEC-JIS", "ACOS" and "CIS-JIS" are only valid in the Japanese text.  Don't choose those encodings in non-Japanese text.
  154.  
  155.  
  156.  
  157.  
  158.  
  159. 2.5 Saving Highlighted Areas
  160.  
  161. To save part of a current document, select the area you want to save in the current window, and choose "Save Selection..." from the "File" menu.    Input a file name to save the file.
  162.  
  163. If you want to append the selected area to a file that already exists, check "Append" in the file dialog box.
  164.  
  165.  
  166.  
  167.  
  168.  
  169. 2.6 Revert
  170.  
  171. If you want to discard all changes made since the last time you saved the file, Choose "Revert" from the "File" menu.
  172.  
  173.  
  174.  
  175.  
  176.  
  177. 2.7 Closing Windows
  178.  
  179. To close the active window, select "Close" from the "File" menu. You will be prompted to save any changes you have made.
  180.  
  181. If you desire to quickly close all open documents, hold down the option key while closing the active window.
  182.  
  183.  
  184.  
  185.  
  186.  
  187. 2.8 Import
  188.  
  189. You can insert objects from another files into the cursor location of the current document by choosing "Import" from the "File" menu.  Six kinds of objects can be inserted, including texts, sounds, images, QuickTime files, QucikDraw3D files and aliases.
  190.  
  191. You may also drag & drop the objects directly into the active window.  Since it is a lot easier to insert objects this way, you should use the drag & drop function when possible.
  192.             
  193. To insert text files using the file menu (text files include plain text, styled text, and read only texts of SimpleText and WASTE text), select "Text File...".
  194.  
  195. To insert Sound Resources, choose "snd Resource...".  You will then be prompted to select the file that includes the 'snd ' (sound) resource you want to insert. After you specified the file, choose the snd resource to insert using the following dialog box:
  196.  
  197.                     
  198. By pushing "Import" button, the following icon  will appear in the  document.
  199.  
  200. If you double click on the above icon right now, you will hear its sound.  The sound resources are usually contained in system file, application files and sound files of following icon:
  201.                     
  202.  
  203. To insert PICT resources, select "PICT Resources..."  You will then be prompted to select either a PICT file, or a file that includes PICT resources.   PICT files usually have the following icon:
  204.                     
  205.  
  206. If you choose the file that includes PICT resources, next you will be prompted to select PICT resource by the following dialog:
  207.  
  208.                     
  209.  
  210. Click "Import" after you select the image to insert.
  211.  
  212. If you choose "QuickTime.." or "QuickDraw3D", you will be prompted to select the QuickTime file or QuickDraw3D file you want to insert.  File Icons for QuickTime and QuickDraw3D files look like the following:
  213.                                         
  214.         QuickTime Movie File        QuickDraw3D File
  215.         
  216. To play the QuickTime Movies or QuickDraw 3D Movies, double click on the imported object you want to play. 
  217.  
  218. If you choose "Alias...",  you will be prompted to select the original file to be aliased. After making the selection, an alias object will appear in the current document.
  219.  
  220. The original file or original folder will open when you double click on the alias objects in the document as same as alias icons in Finder.  If the original file cannot be located, you will be prompted to indicate where the original file or folder exists. Select the original from the following file dialog  A blank icon will represent the alias that does not connect to an original file or folders.
  221.                 
  222.  
  223. You can change the original file of the alias object by double clicking on the alias with the option key down.
  224.  
  225. If the current document is HTML (i.e. HTML coloring is active), "Path Name..." will appear instead of "Alias..." in the Import menu.
  226.  
  227.                 
  228.  
  229. Selecting "Path Name..." will allow you to insert the path names* for the files you select. This is useful when you need to insert anchor or image tags.
  230.  
  231. *The path name will be converted to a URL when inserted. Space, back-slashes(\), non-ASCII characters (kanji, Hankaku-katakana and others), and special symbols(< > [ ] { }^ ` | ~)  will be converted to HEX codes with %.
  232.  
  233.  
  234.  
  235. 2.9 Exporting Objects
  236.  
  237. To save an object as an individual file, select the object (sound, image or others), then choose "Export Objects..." from the "File" menu.
  238.     Sounds will be saved in a  sound file.
  239.     
  240.     Images will be saved in a  PICT file.
  241.  
  242.     QuickTime objects will be saved in one of the following:
  243.      BMP, DV Stream, PICT or  movie file.
  244.     
  245.     QuickDraw3D objects will be saved in a  3D movie file.
  246.  
  247.     Aliases and path names  can not be exported.
  248.  
  249.  
  250.  
  251.  
  252. 2.10 Document Information
  253.  
  254. To view document information, choose "Document Information..." from the "File" menu. The following window will display information for the selected area, as well as the entire document.
  255.  
  256.                 
  257.  
  258. Information data are recalculated when the information window comes to front.  Note that data are not refreshed while the information window stays in background.
  259.  
  260. "Text" refers to the byte size of the current document. (Style data and objects are not included.)
  261.  
  262. "Paragraphs" is the number of paragraphs contained in the document.  Every carriage return will be counted as one paragraph.
  263.  
  264. "Lines" refers to the number of physical lines that appear in your document window.
  265.  
  266. "Words" refers to words count.  In Japanese text, words count is meaningless because Japanese sentences usually don't contain white spaces.
  267.  
  268. "Character Count" refers to the number of characters in the document.  Both 1-byte and 2-byte characters will be counted as one character.  However, control characters (such as tab or line break ) will be excluded from the count.
  269.  
  270. "Image", "Sound", "QuickTime", "QuickDraw3D" and "Alias" all refer to the number of such objects contained in the document, respectively.
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277. 2.11 Printing
  278.  
  279. Select "Page Setup..." from the "File" menu to set up the appearance and layout of the printed page.
  280.  
  281. Select "Print..." from the "File" menu to print entire pages from the current document.
  282. If you select "Print One" from the 'File" menu, a single copy of the current document will be printed.
  283.  
  284. To print a portion of a document, select the area to print, and choose "Print Selection..." from the "File" menu.
  285.  
  286. Paper width and document width
  287.  
  288. When the document width is set to  "follows the window width" in "Format" menu, printing line width also will follow the paper width.  In such cases, printed image may not appear the same as the image of document window because of the difference between window and paper width.
  289.     
  290. If you select "Fixed width" at "Document width..." of the "Format" menu,  line width on the printed document will be the same as the document width in the window.  Therefore, the printed image will appear the same as the document in your window.
  291.  
  292. If you have checked "Wordwrap follows the paper width" in "Print" Preference, printing line  width will follow the paper width, regardless of whether or not you select "Fixed width" at "Document Width..." of "Format" menu.
  293.  
  294. You may also make the print setting in the "Print" of  "Preferences". ( For details, see "Chapter 3, 3.6 Print Settings".)
  295.  
  296.              
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.